
#ifndef _DataBaseTree_H_
#define _DataBaseTree_H_

#include "WidgetsApi.hpp"
#include "../OLCore/AbstractTreeWidget.hpp"
#include "../OLCore/AbstractDataItem.hpp"
#include "../OLDatax/DataItemRoot.hpp"
#include "../OLDatax/SQLDataItem.hpp"

#include <QStringList>
#include <QDir>

namespace NSWidgets {
	
#define SQL_DIR "C:/KRins/develop/Project/Qmake/openlaser/sql_table"

	class WIDGETSAPI DataBaseTree :
		public NSCore::AbstractTreeWidget
	{
		Q_OBJECT

	public:
		DataBaseTree(QWidget* w = nullptr);
		~DataBaseTree();
	public:

	signals:


	private:
		QStringList getSqlFiles();
		void loadSqlItem();
	private:
		NSCore::AbstractDataItem* m_table_root;

	private slots:


	public: /*override*/
		virtual inline QString className() override { return "DataBaseTree"; };

	};

}


#endif

